//
//  TraceHelper.swift
//  GreenDeal
//
//  Created by Moennig Q on 23/11/2022.
//

import UIKit
import FirebaseAnalytics
enum TrackEventName: String{
    case fontLarger = "font_config_larger"
    case fontStandard = "font_config_standard"
}
enum FontScaleParam: String{
    case standard = "Standard"
    case larger = "Larger"
}
class TraceHelper {
    static let shared = TraceHelper()
    //APP埋点,统一方法
    func track(_ eventName: TrackEventName,params: [String: Any]? = nil){
        Analytics.setDefaultEventParameters(nil)
        Analytics.logEvent(eventName.rawValue, parameters: params)
    }
}
